package com.slipper.system.api.message.service;

import com.slipper.common.bo.Result;
import com.slipper.common.feign.ServiceClient;
import com.slipper.common.annotation.FeignRequestMapping;
import com.slipper.system.api.message.bo.MessageBO;

import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 消息信息表
 * 
 * @date 2023-03-15 15:53:45
 */
@ServiceClient
public interface IMessageSv {
    @FeignRequestMapping("/message/queryBy")
    Result<MessageBO> queryBy(@RequestBody String id);

    @FeignRequestMapping("/message/queryList")
    Result<List<MessageBO>> queryList(@RequestBody MessageBO bo);

    @FeignRequestMapping("/message/queryPage")
    Result<List<MessageBO>> queryPage(@RequestBody MessageBO bo);

    @FeignRequestMapping("/message/queryMyPage")
    Result<List<MessageBO>> queryMyPage(@RequestBody MessageBO bo);

    @FeignRequestMapping("/message/queryMyCount")
    Result<Long> queryMyCount(@RequestBody MessageBO bo);

    @FeignRequestMapping("/message/save")
    Result<?> save(@RequestBody MessageBO bo);
    
    @FeignRequestMapping("/message/delete")
    Result<?> delete(@RequestBody MessageBO bo);

    @FeignRequestMapping("/message/updateRead")
    Result<?> updateRead(@RequestBody MessageBO bo);

}
